package com.zanbo.clock.model.code;

import lombok.Getter;

/**
 * @author: zanbo
 * @description: 返回信息
 * @date: 上午 11:03 2021-4-26
 */
@Getter
public enum ErrorCode implements BaseCodeInterface {
    NOT_USERNAME(404,"该编号员工不存在!"),
    CLOCK_AM_AGAIN(400,"今天你已经签到了"),
    CLOCK_PM_AGAIN(400,"今天你已经签退了"),
    CLOCK_ERROR(500, "打卡失败，请重试"),
    EEEEERROR(000, "这是不可能的"),
    NONULL(002, "参数不可为空"),
    NO_CLOCK(001,"您今天已经缺勤");
    
    /** 错误码 */
    private int resultCode;
    
    /** 错误描述 */
    private String resultMsg;
    
    ErrorCode(int resultCode, String resultMsg) {
        this.resultCode = resultCode;
        this.resultMsg = resultMsg;
    }
}
